package com.aidong.myprofile.dao;

import java.util.List;
import java.util.Map;

public interface MyAddressDao {
	
	/**
	 * 获取收货地址列表
	 * @param idongId
	 * @return
	 */
	public List<Map<String, Object>> getReceiverAddress(Map<String, Object> map);
	public List<Map<String, Object>> getReceiverAddressDefault(int idongId);
	
	/**
	 * 新增收货地址
	 * @param map
	 */
	public void addReceiverAddress(Map<String, Object> map);
	
	/**
	 * 修改地址信息
	 * @param map
	 */
	public void editReceiverAddress(Map<String, Object> map);
	
	/**
	 * 设为默认地址
	 * @param autoId
	 */
	public void setDefaultReceiverAddress(int autoId);
	
	/**
	 * 删除地址
	 * @param autoId
	 */
	public void delReceiverAddress(int autoId);
	
	/**
	 *将某用户所有地址设置为非默认地址 
	 * @param idongId
	 */
	public void setUnDefaultReceiverAddress(int idongId);
}
